function sampl=quickSort(sampl,left,right,V)
    if(left>right)
        return;
    end
     temp=[sampl(left,V+5),sampl(left,V+6)];
     i=left;j=right;
     while(i~=j)
         while(i<j & compare([sampl(j,V+5),sampl(j,V+6) temp(1) temp(2)],2)==[sampl(j,V+5),sampl(j,V+6)])
             j=j-1;
         end
         sampl(i,:)=sampl(j,:);
         while(i<j & compare([sampl(i,V+5),sampl(i,V+6) temp(1) temp(2)],1)==[sampl(i,V+5),sampl(i,V+6)])
             i=i+1;
         end
         sampl(j,:)=sampl(i,:);
         
     end
        sampl(j,V+5) = temp(1);
        sampl(j,V+6) = temp(2);
        sampl= quickSort(sampl,left,i-1,V);
        sampl= quickSort(sampl,i+1,right,V);
end

